#ifndef SENSOR_H
#define SENSOR_H
#include "opencv2/opencv.hpp"

#include <QObject>
using namespace cv;
class Sensor
{
public:
    Sensor();
    void SetInitPos(double x,double y,double heading);
    void Pos();
    void updateSensor(double x,double y,double heading,QVector<QPointF> *p);
private:
    double Dist(double x0,double y0,double angle);
    Mat SensorP;

    double px;
    double py;
    double theta[720];
    double dist[720];
    double headAng;

    double accurate=2;

    double k[720];
};

#endif // SENSOR_H
